package com.sdry.good.goodWarehouse.service;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.sdry.good.goodWarehouse.entity.GoodContainerStare;
import com.sdry.good.goodWarehouse.service.GoodContainerStareService;
import com.sdry.good.goodWarehouse.mapper.GoodContainerStareMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
 *
 *@ClassName: GoodContainerStareService
 *@Description: 成品容器绑定表
 *@Author tdd
 *@Date 2020-03-25 16:04:53
 *@version 1.0
*/
@Service
@Transactional(rollbackFor = Exception.class)
public class GoodContainerStareServiceImpl implements GoodContainerStareService {
	@Resource GoodContainerStareMapper goodContainerStareMapper;
	//声明一个Logger
	private final static Logger logger = LoggerFactory.getLogger(GoodContainerStareServiceImpl.class);

	/** 
	 * 条件查询所有
	 * @param param 实体条件
	 * @return 实体集合
	*/
	public List<GoodContainerStare> queryAllByMution(GoodContainerStare param) {
		return goodContainerStareMapper.queryAllByMution(param);
	}
	/**
	 * 根据物料和容器分组条件查询所有
	 * @param param 实体条件
	 * @return 实体集合
	*/
	public List<GoodContainerStare> queryAllByMutionGroupMaIdAndCid(GoodContainerStare param) {
		return goodContainerStareMapper.queryAllByMutionGroupMaIdAndCid(param);
	}
	/** 
	 * 条件分页查询
	 * @param param 实体条件
	 * @return 实体集合
	*/
	public List<GoodContainerStare> findPageByMution(GoodContainerStare param) {
		return goodContainerStareMapper.findPageByMution(param);
	}
	/** 
	 * 条件查询记录数
	 * @param param 实体条件
	 * @return 实体集合
	*/
	public Integer selectCountByMution(GoodContainerStare param) {
		return goodContainerStareMapper.selectCountByMution(param);
	}
	/** 
	 * 插入返回id
	 * @param param 实体条件
	 * @return 主键id
	*/
	public Long insert(GoodContainerStare param) {
		return goodContainerStareMapper.insert(param);
	}
	/**
	 * 条件分页查询库存
	 * @param param 实体条件
	 * @return 实体集合
	 */
	public List<GoodContainerStare> findInventoryPageByMution(GoodContainerStare param){
		return goodContainerStareMapper.findInventoryPageByMution(param);
	}
	/**
	 * 条件查询记录数库存
	 * @param param 实体条件
	 * @return 实体集合
	 */
	public Integer selectInventoryCountByMution(GoodContainerStare param){
		return goodContainerStareMapper.selectInventoryCountByMution(param);
	}
}
